const http = uni.$u.http
import { baseUrl } from "../common/http.interceptor";

export default {
    /**
     * 文件上传
     */
    uploadImage: baseUrl + '/api/upload/file',
    
    /**
     * 求职面试交通补贴申请
     */
    jobSubsidyCreate: (data) => http.post(baseUrl + '/api/job-subsidy', data),
    
    /**
     * 青年驿站入住申请
     */
    youthHostelCreate: (data) => http.post(baseUrl + '/api/youth-hostel', data),
    
    /**
     * 保障性住房申请
     */
    affordableHousingCreate: (data) => http.post(baseUrl + '/api/affordable-housing', data),
    
    /**
     * 安家补贴申请
     */
    settlementSubsidyCreate: (data) => http.post(baseUrl + '/api/settlement-subsidy', data),
    
    /**
     * 就业生活补贴申请
     */
    employmentSubsidyCreate: (data) => http.post(baseUrl + '/api/employment-subsidy', data),
    
    /**
     * 购房补贴申请
     */
    housingPurchaseSubsidyCreate: (data) => http.post(baseUrl + '/api/housing-purchase-subsidy', data),
    
    /**
     * 创业补贴申请
     */
    startupSubsidyCreate: (data) => http.post(baseUrl + '/api/startup-subsidy', data),
    
    /**
     * 青年贷
     */
    youthStartupLoanCreate: (data) => http.post(baseUrl + '/api/youth-startup-loan', data),
    
    /**
     * 技能补贴申请
     */
    skillSubsidyCreate: (data) => http.post(baseUrl + '/api/skill-subsidy', data),
    
    /**
     * 户籍迁移申请
     */
    householdMoveCreate: (data) => http.post(baseUrl + '/api/household-move', data),

    getConfigByKey: (key) => http.get(`/api/config/key/${key}`),
}
